// const tokenKey = 'qatsingconstonken';
// const refreshTokenKey = 'qatrefreshtoken';

const tokenKey = import.meta.env.VITE_TOKEN_KEY
const refreshTokenKey = import.meta.env.VITE_REFRESH_TOKEN

export const getToken = () => {
    return sessionStorage.getItem(tokenKey)
}
export const setToken = (token:string) => {
    return sessionStorage.setItem(tokenKey, token)
}
export const removeToken = () => {
    return sessionStorage.removeItem(tokenKey)
}

export const getRefreshToken = () => {
    return localStorage.getItem(refreshTokenKey)
}
export const setRefreshToken = (refreshToken:string) => {
    return localStorage.setItem(refreshTokenKey, refreshToken)
}
export const removeRefreshToken = () => {
    return localStorage.removeItem(refreshTokenKey)
}